Steel pipe placed in an oil or gas well as drilling progresses.  The function of casing is to prevent the wall of the hole from caving during drilling and to provide a means of extracting the oil if the well is productive.